<include file="Public/header"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
    <include file="Public:nav"/>

    <div class="h_a">搜索</div>
  <form method="post" action="{:U('applylist')}">
  <input type="hidden" value="1" name="search">
    <div class="search_type cc mb10">
      <div class="mb10"> 
        <span class="mr20">时间：
        <input type="text" name="start_time" class="input length_2 J_date" value="{$Think.get.start_time}" style="width:80px;">-<input type="text" class="input length_2 J_date" name="end_time" value="{$Think.get.end_time}" style="width:80px;">
        <select class="select_2" name="status" style="width:70px;">
          <option value='4' <if condition=" $status == '4' "> selected</if>>全部</option>
          <option value="0" <if condition=" $status == 0 "> selected</if>>审核中</option>
          <option value="1" <if condition=" $status == 1 "> selected</if>>通过审核</option>
          <option value="2" <if condition=" $status == 2 "> selected</if>>未通过</option>
        </select>
        <button class="btn">搜索</button>
        </span>
      </div>
    </div>
  </form>
  <form class="J_ajaxForm" action="" method="post">
    <div class="table_user">
      <table width="100%">
        <colgroup>
        <col width="40">
        <col width="60">
        <col width="120">
        <col width="">
        <col width="150">
        <col width="80">
        </colgroup>
        <thead>
          <tr>
            <td><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></td>
            <td>审核</td>
            <td>申请人</td>
            <td>礼品名称</td>
            <td>申请时间</td>
            <td>操作</td>
          </tr>
        </thead>
        <volist name="data" id="vo">
          <tr>
            <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="{$vo.id}"></td>
            <td>{$vo.status|showPass}</td>
            <td><a href="{:U("applylist",array("userid"=>$vo[userid]))}">{$vo.userid|getNickName}</a></td>
            <td><a href="{:U("applylist",array("giftid"=>$vo[giftid]))}">{$vo.giftid|getGiftsName}</a></td>
            <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
              <td><a class="J_ajax_del" data-msg="为了不影响数据,不建议删除,确认一定要删除吗?" href="{:U('Gifts/apply_delete', array('id' => $vo['id']))}">删除</a></td>
          </tr>
        </volist>
      </table>
      <div class="p10"><div class="pages"> {$Page} </div> </div>
     
    </div>
    <div class="btn_wrap">
      <div class="btn_wrap_pd">
        <label class="mr20 sel-all"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>
          <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Gifts/apply_batch/',array('do'=>'checkpass'))}">审核</button>
        <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Gifts/apply_batch/',array('do'=>'cancelpass'))}">取消审核</button>
        <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Gifts/apply_batch/',array('do'=>'nopass'))}">不通过审核</button>
        <!--<button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Gifts/apply_batch_delete')}">删除</button>-->
      </div>
    </div>
  </form>
</div>
<script src="__JS__/common.js"></script>
</body>
</html>